ostree/config: Add an "unset" operation
authorMatthew Leeds <matthew.leeds@endlessm.com>
Fri, 28 Sep 2018 22:36:49 +0000 (15:36 -0700)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 1 Mar 2019 16:29:44 +0000 (16:29 +0000)
commiteecd989d4661f48c51f49565422ef11d1c231371
tree9e21e4c80575164e6aa33951c855d8c9c0a8d40e
parent77f91d6c6be2d264aa14be9d33c0488dc7e141cc
ostree/config: Add an "unset" operation

Currently there's a way to set a key to the empty string but there's no
way to unset it completely (remove the key from the group). This might
be helpful for instance if you want to temporarily set
"core.lock-timeout-secs" to a specific value for the duration of one
operation and then return it to the default after that operation
completes.

This commit implements an "unset" operation for the config command, adds
a unit test, and updates the man page.

Closes: #1743
Approved by: cgwalters
man/ostree-config.xml
src/ostree/ot-builtin-config.c
tests/test-config.sh